/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const teacherRouter = {
  path: '/teacher',
  component: Layout,
  redirect: '/teacher/list',
  name: 'teacher',
  meta: {
    title: '教师管理',
    icon: 'teacher',
    roles: ['admin', 'org', 'school'] // you can set roles in root nav
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/teacher/list'),
      name: 'teacherList',
      meta: { title: '教师列表', icon: 'list', roles: ['admin', 'org'] }
    },
    {
      path: 'create',
      component: () => import('@/views/teacher/create'),
      name: 'teacherCreate',
      meta: { title: '添加教师', icon: 'create', roles: ['admin', 'org'] }
    }
  ]
}

export default teacherRouter
